﻿
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace WpfDemo.Models.Sys
{
    [Table("SysAuth")]
    public class AuthEntity : IEntity<string>
    {
        [Key]
        public string F_Id { get; set; }
      
        public string? F_RoleId { get; set; }


        [ForeignKey(nameof(FModuleEntity))]
        public string? F_ModuleId { get; set; }

        public ModuleEntity FModuleEntity { get; set; }

        [ForeignKey(nameof(FButtonEntity))]
        public string? F_ButtonId { get; set; }

        public ButtonEntity FButtonEntity { get; set; }

    }
}
